package com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm;


import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Manufactor;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.ManufactorVo;

import java.util.List;

/**
 * @author YuPeng
 */
public interface ManufactorMapper {
    /**
     * 删除供应商
     * @param manuId
     * @return
     */
    int deleteByPrimaryKey(String manuId);

    /**
     * 新增供应商
     * @param record
     * @return
     */
    int insert(Manufactor record);

    /**
     * 新增供应商
     * @param record
     * @return
     */
    int insertSelective(Manufactor record);

    /**
     * 获取供应商详情
     * @param manuId
     * @return
     */
    Manufactor selectByPrimaryKey(String manuId);

    /**
     * 更新供应商
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Manufactor record);

    /**
     * 更新供应商
     * @param record
     * @return
     */
    int updateByPrimaryKey(Manufactor record);

    /**
     * 获取全部供应商列表
     * @return
     */
    List<ManufactorVo> selectAll();
    /**
     * 获取供应商详情
     * @param manuId
     * @return
     */
    ManufactorVo selectById(String manuId);
}